#ifndef MAIN_WINDOW_H_
#define MAIN_WINDOW_H_

#include <stdio.h>
#include <gtk/gtk.h>
int main_window(char *userinfo);
void display_window(GtkWidget *window, char *userinfo);

GtkWidget *create_userinfo(char *userName);
GtkWidget *create_list(char *userFriendsId);
GtkWidget *create_toolbar(void);
GtkWidget *make_box(gchar *title, GtkWidget *image);
GtkListStore *show_list(void);

gint mouse_event_handle(GtkWidget *widget, GdkEventButton *event, gpointer data);

static void show_talk_win_clicked(GtkTreeView *tree_view, GtkTreePath *path, gpointer data);
typedef struct address{
	int port;
	char *ip;
}Address;

typedef struct userinfo{
	int id;
	char *name;
	int imageId;
	Address *addre;
}UserInfo;

typedef struct user{
	UserInfo self;
	int friendcount;
	UserInfo *friends;
}User;

enum{	
	NAME = 0
};


#endif

#include "socket_deal_with.h"
#include "talk_window.h"

